/**
 * Created by GYL on 2018/7/25
 */
import React, { Component } from 'react';
import { Tabs } from 'antd';
import DeviceDay from './tab/DeviceDay';
import DeviceHistory from './tab/DeviceHistory';
import style from './Device.less'
const TabPane = Tabs.TabPane;
class Device extends Component {

    render() {

        return (
            <div ClassName={style.wrap}>
                <Tabs defaultActiveKey="1" size="small">
                    <TabPane tab="当日报警" key="1">
                        <DeviceDay
                            history={this.props.history}
                        />
                      
                    </TabPane>
                    <TabPane tab="历史报警" key="2">
                        <DeviceHistory
                            history={this.props.history}
                        />
                       
                    </TabPane>
                   
                </Tabs>
            </div>
        )
    }
}
export default (Device);
